﻿@model IEnumerable<Common.Views.StatisticalReportView>

@{
    ViewBag.Title = "MyCart";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<h3>Most Purchased Products</h3>
<hr />

<table>
    <tr>
        <th>
            ID
        </th>
        <th>
            ProductName
        </th>
        <th>
            Amount Purchased
        </th>
        </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.productID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ProductName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.mostPurchased)
        </td>
        
    </tr>
}

</table>
